package com.tianyadu.security.core.validate.code.sms;

import lombok.extern.slf4j.Slf4j;

/**
 * @FileName: DefaultSmsCodeSender
 * @Description: 默认短信验证码发送实现
 * @author: xueyj
 * @create: 2018-12-13 15:11
 */
@Slf4j
public class DefaultSmsCodeSender implements SmsCodeSender {

    /**
     * @Description: 发送短信验证码
     * @see  com.tianyadu.security.core.validate.code.sms.SmsCodeSender#sendSms(java.lang.String, java.lang.String)
     * @param: mobile：手机号
     * @param: content：短信内容
     * @return:
     * @author:
     * @date: 2018/12/13 15:08
     */
    @Override
    public void sendSms(String mobile, String content) {
        log.info("向手机【{}】发送验证码【尊敬的用户您好：您的短信验证码为{}，XXX分钟内有效，过期请重新获取】"
        , mobile, content);
    }
}